﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JqueryNet;
using System.Web.UI.HtmlControls;

namespace njquerytest
{
    public partial class WebTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Bind();                
            }
        }

        private void Bind()
        {
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic.Add("娜娜", "0");
            dic.Add("莉莉", "1");
            dic.Add("依依", "2");
            dic.Add("美眉", "3");

            BulletedList1.DataSource = dic;
            BulletedList1.DataTextField = "Key";
            BulletedList1.DataValueField = "Value";
            BulletedList1.DataBind();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //Response.Write(JQuery.Get(TextArea1).Val().Value);           
        }
    }
}